from sympy import *
x=symbols('x')
f=x**9
duff=diff(f,x)
print(duff)